<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='违章记录' /></title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<%@ include file="../commonPage/message.jsp" %>
		<script type="text/javascript" src="/SCMDB/js/jquery-1.4.2.js"></script>
		
	
	</head>
	<body>
		<h2>
			<s:property value='%{getText("current_position")}' />${parentMenu}>>${currentMenu}
		</h2>
		<div class="main">
		  <s:form action="violationRecordAction!findAll" method="post" theme="simple">
			<p class="pEdit">
			  <%=request.getAttribute("button") %>
			</p>			
			
			<table border="0" cellpadding="1" cellspacing="1" class="tableList">
				<thead>
					<tr>
						<th width="5%">
							<input type="checkbox" name="checkbox" value="checkbox"
								onclick="Super.checkAll(this.checked)" title="全选/取消" />
						</th>
						<th width="5%" class="number">序号</th>
						<th width="10%">违章程度</th>
						<th width="20%">违章类型</th>
						<th width="10%">违章日期</th>
						<th width="10%">违章人</th>
						<th width="10%">处理情况</th>
						<th width="30%">备注</th>
					</tr>
				</thead>
				<tbody>
				   <s:iterator id="pageBean" value="entity.list" status="u">
					  <tr>
    					<td><input type="checkbox" name="checkbox" value="${pageBean.sysId}" /></td>
						<td class="number">${entity.index+u.index}</td>
						<td><s:property value="grade"/></td>
						<td id="illegalTypeNameDiv"><s:property value="illegalTypeName"/></td>
						<td><s:property value="violationDate"/></td>
						<td>
							<a href="#" onclick="Super.Popup(5,'查询','/SCMDB/employeeAction!findEmp.action?id=${employee.id}','',700,600);">
								<s:property value="employee.empName"/>
							</a>
						</td>
						<td>
							<s:if test="#pageBean.rectification == false">未处理</s:if>
							<s:if test="#pageBean.rectification == true">已处理</s:if>
						</td>
						<td>
							<s:iterator id="files" value="fileList">
								<a href="
									<s:url action="downloadAction">
										<s:param name="fileName" value="name" />
										<s:param name="path" value="path" />
										<s:param name="uploadName" value="uploadName" />
									</s:url>">
									<s:property value="name" />
								</a>
								<br />
							</s:iterator>
							<s:property value="description"/>
						</td>
					</tr>
				  </s:iterator>
				  <tr>
					<td colspan="8" class="turnPage">
						<jsp:include flush="true" page="../commonPage/page.jsp">
							<jsp:param name="entity" value="entity" />
						</jsp:include>
					</td>
				  </tr>
				</tbody>
			</table>			
		  </s:form>
		</div>
	</body>
	
		<script>
			$(function(){
				//alert($("#illegalTypeNameDiv").html());
			});
		</script>
</html>
